package com.xiaobai.demo.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class User {

    @NotNull
    private Integer id;

    private String userName ;

    private  String password;

    private String email;

    private Data createdTime;
}
